package entities;

import java.io.Serializable;
import java.util.Date;

import basic.BaseEntity;
import basic.FieldMeta;

public class TSubject extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@FieldMeta(primary = true, name = "编号", description = "创建商户时将自动创建一个管理员权限的子账户,编码规则为\"商编+00\",商户登录时只能使用子账户号", column = "sub_no", require = true, range = true, length = 32, order = 0)
	private String subNo;

	public String getSubNo() {
		return subNo;
	}

	public void setSubNo(String subNo) {
		this.subNo = subNo;
	}

	@FieldMeta(name = "名称", description = "名称", column = "sub_name", require = true, length = 50, order = 1)
	private String subName;

	public String getSubName() {
		return subName;
	}

	public void setSubName(String subName) {
		this.subName = subName;
	}

	@FieldMeta(name = "登录口令", description = "登录口令", column = "sub_pwd", require = true, length = 50, order = 2)
	private String subPwd;

	public String getSubPwd() {
		return subPwd;
	}

	public void setSubPwd(String subPwd) {
		this.subPwd = subPwd;
	}

	@FieldMeta(name = "密钥", description = "每个子账户拥有不同的密钥", column = "sub_key", require = true, length = 32, order = 3)
	private String subKey;

	public String getSubKey() {
		return subKey;
	}

	public void setSubKey(String subKey) {
		this.subKey = subKey;
	}

	@FieldMeta(name = "权限菜单", description = "子账户的权限菜单", column = "sub_menu", require = true, length = 500, order = 4)
	private String subMenu;

	public String getSubMenu() {
		return subMenu;
	}

	public void setSubMenu(String subMenu) {
		this.subMenu = subMenu;
	}

	@FieldMeta(name = "状态", description = "状态", column = "sub_state", require = true, length = 1, order = 5)
	private String subState;

	public String getSubState() {
		return subState;
	}

	public void setSubState(String subState) {
		this.subState = subState;
	}

	@FieldMeta(name = "日期", description = "日期", column = "sub_date", require = true, range = true, order = 6)
	private Date subDate;

	public Date getSubDate() {
		return subDate;
	}

	public void setSubDate(Date subDate) {
		this.subDate = subDate;
	}

	@FieldMeta(name = "备注", description = "备注", column = "sub_remark", length = 500, order = 7)
	private String subRemark;

	public String getSubRemark() {
		return subRemark;
	}

	public void setSubRemark(String subRemark) {
		this.subRemark = subRemark;
	}
}